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

What is wrong here?

Asked by 10 years ago

I have the following code, but the Text will not change!!! Help?

while script.Parent.Parent.Visible == true do
    v = math.random(10,15)
    script.Parent.Style = "Custom"
    script.Parent.TextColor3 = Color3.new(0,0,0)
    repeat
        script.Parent.Text = ""..v..""
        v = v-1
        wait(1)
    until v == 0
    script.Parent.Style = "RobloxButtonDefault"
    script.Parent.TextColor3 = Color3.new(255,255,255)
    script.Parent.Text = "Click to Close Advertisement"
    script.Parent.MouseButton1Click:connect(function ()
        script.Parent.Parent.Visible = false
    end)
    wait()
end

There's no output given by Studio...

0
To get a valid output, save this to one of your places that has the GUIs, Play the game (Like if you were going to any ordinary game), Once you're in, press F9 and go to Local Console (or Server Console. Which ever one is on the right side). There, it should tell you what you did wrong. Shawnyg 4330 — 10y
0
umm, Isn't that what the output does too? fahmisack123 385 — 10y
0
Yes, but the one in-game is more reliable. The Studio one, if you run a code, it won't error because it has nothing to test it on. If you do it in Test mode, it may work, but may not work in a real server. If you do it in a real server, it'll give you more reliable answers. Shawnyg 4330 — 10y
0
Ok fahmisack123 385 — 10y

Answer this question