Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

When a player dies remote events dont fire anymore?

Hello, when a player touches a brick a value goes down by 1 and a remote event fires. Everything works fine, but when the player dies, remote events dont work anymore... Script(Server):

	repeat wait()
		if health.Value < 3 then
			event:FireAllClients()
			
end
	until	health.Value < 3
		
repeat wait()
	if health.Value < 2 then
		event1:FireAllClients()
end
	until health.Value < 2


repeat wait()
	if health.Value < 1 then
		event2:FireAllClients()
end
	until health.Value < 1

Any Ideas? Thank you.

2 comments

0

remove the repeats and put everithing inside an while loop (maybe you'll need to add some more conditions)

0

That worked, thank you.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.