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

TextButton stopped working for no reason?

Asked by 11 years ago

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

01ifActive = script.Parent.IfActive.Value
02activeVal = script.Parent.Parent.ActiveVal.Value
03script.Parent.MouseButton1Click: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.TextColor3 = Color3.new(0, 255, 0)
13    end
14    if asd ~= 6 then
15 
View all 24 lines...

tell me if there is something wrong with the script

1 answer

Log in to vote
1
Answered by
HexC3D 830 Moderation Voter
11 years ago
01ifActive = script.Parent.IfActive.Value
02activeVal = script.Parent.Parent.ActiveVal.Value
03script.Parent.MouseButton1Click: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.TextColor3 = Color3.new(0, 255, 0)
13    end
14    if asd ~= 6 then
15 
View all 24 lines...
0
Thanks!, it finally worked jorge5879 5 — 11y
Ad

Answer this question