event:FireAllClients() doesn't work for my script... Anyone could help me?
Asked by
5 years ago Edited 5 years ago
Hello, There is a health value, whenever you touch a spike it lowers for 1. I have this script(Serverscript):
1 | while test = = true do wait() |
2 | if health.Value < 2 then |
3 | event 1 :FireAllClients() |
If on line 3 I do a print("something") It prints it once, everything is fine, but if I do remoteEvent it doesn't work...
Local script:
1 | event 1. OnClientEvent:Connect( function () |
2 | script.Parent.Parent.health 1. Visible = false |
Thank you.