#RemoteEvent in if statements
1 messages · Page 1 of 1 (latest)
RemoteEvent.OnClientEvent - localscript
RemoteEvent.OnServerEvent - script
No
And that's now how you should use it either
Make a variable called stop inside the while loop
Actually do it like this
ok wait a minute
let me explain rq
i want the script to stop the while lool if that remote event is activated
local stop = false
stoptime.OnClientEvent:Once(function()
stop = true
...(Other stuff)
end)
while timer > 0 and not stop do
...(While loop)
end
it was to break out of the loop when it was activated
i tried an if statement too
but i couldnt figure out how too
@rotund crypt this