Server
local plr = game.Players:FindFirstChildOfClass("Player")
repeat wait() until plr
remote:InvokeClient(plr)
print"All clients done!"
Client
My attempt
local stop = false
local function ay()
mouse.Button1Down:Connect(function()
print"yay"
stop = true
end)
repeat wait() until stop
end
text.OnClientInvoke = ay
This work's it's just is there any way i can make it actually wait for the function to execute i dont want it to be delayed a little then let the server know.

1 comment
I think you could just wait until the first function has run and then have a wait(time) after it, and then run the other function.