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 8 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:

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
0
Is script.Parent.Captured.Value equivelant to true? Try putting prints in places to see where the code stops. Goulstem 8144 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago
script.Parent.Captured.Changed:connect(function()
    if script.Parent.Captured.Value == true then
        Wait(3)
        script.Parent.Flag.Value = " "
        script.Parent.Team.Value = " "
    end
end)
Ad

Answer this question