Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why will this simple script not work?

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

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

...I think

3 comments

0

The first part is not the problem. "Script2" is not being enabled.

0

Alright then. Try repeat wait() until b.Value == true for that line.

0

Or make another function that has Script2's code and fire that where you set b.Value to true.

This discussion is preserved as it was. New answers, comments, and votes are closed.