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

Why will this simple script not work?

Asked by 10 years ago

First code, not main problem.

a = game.Players.LocalPlayer.PlayerGui.Hacker.Frame
b = game.Workspace.Start
function clicked()

    local text = "<EoF";
for i = 1,#text do
    a.Mes1.Text = text:sub(1,i);
    wait(0.1);
end

    wait(1.5)
    local text = "LOADING LOCAL_COMPUTERS";
for i = 1,#text do
    a.Mes2.Text = text:sub(1,i);
    wait(0.1);
end

    b.Value = true
end
script.Parent.MouseButton1Down:connect(clicked)

Second code, the problem. NOTE THAT THIS IS IN THE SAME SCRIPT!

 if b.Value == true then
    wait(0.1)
    a.ENTER.Script2.Disabled = false
end

Thanks for helping!

1 answer

Log in to vote
0
Answered by 10 years ago

Lines 6 and 12 need to be for i = 1, text:len do

...I think

0
The first part is not the problem. "Script2" is not being enabled. My_Comment 95 — 10y
0
Alright then. Try repeat wait() until b.Value == true for that line. cheweydog 20 — 10y
0
Or make another function that has Script2's code and fire that where you set b.Value to true. cheweydog 20 — 10y
Ad

Answer this question