Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why is this Value Manipulator not Working?

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

0

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

1 answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.