mirror of
https://github.com/imezx/Warp.git
synced 2025-11-05 04:13:36 +00:00
fix bug: server function be invoke too manay time.
server code
local Wrap = require(game.ReplicatedStorage.Warp)
local Func = Wrap.Server("Func");
Func:Connect(function(player: Player, str,num)
warn("on_invoke", player.Name)
task.wait(1)
return "hi.."
end)
client code:
local Wrap = require(game.ReplicatedStorage.Warp)
local Func = Wrap.Client("Func");
warn(Func:Invoke(3, "balala"))
|
||
|---|---|---|
| .. | ||
| Index | ||
| init.luau | ||