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

Why did this script break when it worked before?

This script worked before but wont work now. I have no clue why.

a = game.Players.LocalPlayer.PlayerGui.Hacker.Frame

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_COMPUTER_DATA";
for i = 1,#text do
    a.Mes2.Text = text:sub(1,i);
    wait(0.1);
end

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

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

	wait(1.5)
    local text = "FIREWALL_SECURITY";
for i = 1,#text do
    a.Mes5.Text = text:sub(1,i);
    wait(0.1);
end
	
	
script.Parent.MouseButton1Down:connect(clicked)
end

1 answer

✓ Accepted answer

You should tab your code properly. That would reveal the problem.

Your connection line is inside the function definition, meaning it never would be called, and so the function is never connected to the event.

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