I'm trying to make a lamp that turns off during the day. I'm also trying to make it compatible with FE. I can't test it when I cannot run the function.
function fireServ() script.Parent:WaitForChild("ChangeLight"):FireServer() print("Fired!") end if 1 + 1 == 2 then fireServ() end
The output logs say nothing about there being error nor printing, "Fired!". I don't know what I'm doing wrong?
edit ; It's in a LocalScript if that helps.
don't forget to put local before function
To do this, use the Script
, not LocalScript
function fireServ() script.Parent:WaitForChild("ChangeLight"):FireServer() print("Fired!") end local s = 1 if s + 1 == 2 then fireServ() end