This script is supposed to reset a boolean and two strings after three seconds. However, the script isn't working, and I have no idea why.
Output gave me nothing.
Can someone please help me? Here's the script:
while wait(0.1) do
if script.Parent.Captured.Value == true then
wait(3)
script.Parent.Captured.Value = false
script.Parent.Flag.Value = " "
script.Parent.Team.Value = " "
end
end

1 comment
Is script.Parent.Captured.Value equivelant to true? Try putting prints in places to see where the code stops.