#RemoteEvent in if statements

1 messages · Page 1 of 1 (latest)

rotund crypt
#

is there a way to check if an remote event is activated using the if statement?

cunning parrot
#

RemoteEvent.OnClientEvent - localscript
RemoteEvent.OnServerEvent - script

rotund crypt
#

wait let me tell you what i want rq

queen carbon
#

And that's now how you should use it either

queen carbon
#

Actually do it like this

rotund crypt
#

ok wait a minute

#

let me explain rq

#

i want the script to stop the while lool if that remote event is activated

cunning parrot
#

why did you put your OnClientEvent inside a loop?

#

it'll just cause alots of lag

queen carbon
#
local stop = false
stoptime.OnClientEvent:Once(function()
stop = true
...(Other stuff)
end)

while timer > 0 and not stop do
...(While loop)
end
rotund crypt
#

i tried an if statement too

#

but i couldnt figure out how too

rotund crypt
#

thanks