Update Index.luau

Remove tostrings on Key
This commit is contained in:
xArshy 2024-04-02 12:30:46 +04:00 committed by GitHub
parent 8d7acddd8c
commit ad0cc31ea7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,7 @@ function Client:Invoke(timeout: number, ...: any): any
end
function Client:Connect(callback: (args: any) -> ()): string
local key = tostring(Key())
local key = Key()
table.insert(self.fn, key)
self.IsConnected = #self.fn > 0
ClientProcess.addCallback(self.id, key, callback)
@ -49,7 +49,7 @@ function Client:Connect(callback: (args: any) -> ()): string
end
function Client:Once(callback: (args: any) -> ()): string
local key = tostring(Key())
local key = Key()
table.insert(self.fn, key)
self.IsConnected = #self.fn > 0
ClientProcess.addCallback(self.id, key, function(...)
@ -86,4 +86,4 @@ function Client:Destroy()
setmetatable(self, nil)
end
return Client.new
return Client.new