So this script is supposed to call on functions when certain values are made true. However, it doesn't work, and I have no idea why. Output has been saying the functions I am trying to call are nil. Can someone please help me?
Here's the script:
local Playing = script:WaitForChild("Playing")
local Done = script:WaitForChild("Done")
while wait() do
if Playing.Value == true then
if Done.Value == true then
End()
wait(3)
ReDo()
end
end
end
function End()
print('Game over')
end
function ReDo()
print('Restarting')
end

2 comments
Check if the values are true. Instead of doing if Playing.Value == true then, do if Playing.Value then. Shortcuts!
Output said that the functions "End()" and "ReDo()" are nil. Forgot to add that.