Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why is this Value Manipulator not Working?

Asked by 9 years ago

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:

1while wait(0.1) do
2    if script.Parent.Captured.Value == true then
3        wait(3)
4        script.Parent.Captured.Value = false
5        script.Parent.Flag.Value = " "
6        script.Parent.Team.Value = " "
7    end
8end
0
Is script.Parent.Captured.Value equivelant to true? Try putting prints in places to see where the code stops. Goulstem 8144 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago
1script.Parent.Captured.Changed:connect(function()
2    if script.Parent.Captured.Value == true then
3        Wait(3)
4        script.Parent.Flag.Value = " "
5        script.Parent.Team.Value = " "
6    end
7end)
Ad

Answer this question