the other day i made a button that is supposed to change the text of something, it worked but now it doesnt
here is the script
01 | ifActive = script.Parent.IfActive.Value |
02 | activeVal = script.Parent.Parent.ActiveVal.Value |
03 | script.Parent.MouseButton 1 Click:connect( function () |
04 | activeVal = 1 |
05 |
06 | while activeVal = = 1 do |
07 | script.Parent.SpotsVal.Value = script.Parent.Parent.Parent.Parent.Parent.Spots.Frame.TextLabel.SpotsVal.Value |
08 | asd = script.Parent.SpotsVal.Value |
09 | script.Parent.Parent.Parent.Desc.Text = ( "Find the 6 No skating signs around the map" ) |
10 | if asd = = 6 then |
11 | script.Parent.Parent.Parent.Progress.Text = ( "Completed!" ) |
12 | script.Parent.Parent.Parent.Progress.TextColor 3 = Color 3. new( 0 , 255 , 0 ) |
13 | end |
14 | if asd ~ = 6 then |
15 |
tell me if there is something wrong with the script
01 | ifActive = script.Parent.IfActive.Value |
02 | activeVal = script.Parent.Parent.ActiveVal.Value |
03 | script.Parent.MouseButton 1 Click:connect( function () |
04 | activeVal = 1 |
05 |
06 | repeat wait() unti activeVal ~ = 1 -- Or you can do if activeval == 1 then and so on |
07 | script.Parent.SpotsVal.Value = script.Parent.Parent.Parent.Parent.Parent.Spots.Frame.TextLabel.SpotsVal.Value |
08 | asd = script.Parent.SpotsVal.Value |
09 | script.Parent.Parent.Parent.Desc.Text = "Find the 6 No skating signs around the map" |
10 | if asd = = 6 then |
11 | script.Parent.Parent.Parent.Progress.Text = ( "Completed!" ) |
12 | script.Parent.Parent.Parent.Progress.TextColor 3 = Color 3. new( 0 , 255 , 0 ) |
13 | end |
14 | if asd ~ = 6 then |
15 |