diff --git a/src/Client/init.luau b/src/Client/init.luau index 8d63f50..201ad75 100644 --- a/src/Client/init.luau +++ b/src/Client/init.luau @@ -9,8 +9,8 @@ local Replication = require("./Replication") local Xor = require("./Util/Xor") local RunService = game:GetService("RunService") -local Event: RemoteEvent = script.Parent:WaitForChild("Event") -local UnreliableEvent: UnreliableRemoteEvent = script.Parent:WaitForChild("UnreliableEvent") +local Event: RemoteEvent = script.Parent:WaitForChild("Event") :: RemoteEvent +local UnreliableEvent: UnreliableRemoteEvent = script.Parent:WaitForChild("UnreliableEvent") :: UnreliableRemoteEvent local deltaT: number, cycle: number = 0, 1 / 61 local writer: Buffer.Writer = Buffer.createWriter() @@ -200,7 +200,7 @@ if RunService:IsClient() then local connections = eventListeners[remote] if connections then for _, connection in connections do - Thread(connection.c, table.unpack(args)) + Thread(connection.c :: any, table.unpack(args)) end end end diff --git a/src/Server/init.luau b/src/Server/init.luau index 0976bf0..6e8fb15 100644 --- a/src/Server/init.luau +++ b/src/Server/init.luau @@ -11,9 +11,9 @@ local Xor = require("./Util/Xor") local Players = game:GetService("Players") local RunService = game:GetService("RunService") -local Event: RemoteEvent = script.Parent:WaitForChild("Event") -local _repl: RemoteEvent = script.Parent:WaitForChild("_repl") -local UnreliableEvent: UnreliableRemoteEvent = script.Parent:WaitForChild("UnreliableEvent") +local Event: RemoteEvent = script.Parent:WaitForChild("Event") :: RemoteEvent +local _repl: RemoteEvent = script.Parent:WaitForChild("_repl") :: RemoteEvent +local UnreliableEvent: UnreliableRemoteEvent = script.Parent:WaitForChild("UnreliableEvent") :: UnreliableRemoteEvent local deltaT: number, cycle: number = 0, 1 / 61 local writer: Buffer.Writer = Buffer.createWriter() @@ -242,7 +242,7 @@ if RunService:IsServer() then local connections = eventListeners[remote] if connections then for _, connection in connections do - Thread(connection.c, player, table.unpack(d)) + Thread(connection.c :: any, player, table.unpack(d)) end end end