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:
1 | while 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 |
8 | end |
1 | script.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 |
7 | end ) |