From ad0cc31ea70223ba861ad250b66f930c1bed4b9d Mon Sep 17 00:00:00 2001 From: xArshy <6077173+xArshy@users.noreply.github.com> Date: Tue, 2 Apr 2024 12:30:46 +0400 Subject: [PATCH] Update Index.luau Remove tostrings on Key --- src/Index/Client/Index.luau | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Index/Client/Index.luau b/src/Index/Client/Index.luau index fc925ff..33fde13 100644 --- a/src/Index/Client/Index.luau +++ b/src/Index/Client/Index.luau @@ -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 \ No newline at end of file +return Client.new