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

Can anyone fix this easy GUI Button script?

this isn't working:

strength = script.Parent.TextBox
script.Parent.MouseButton1Down:connect(function() 
	strength.text = math.random(1,10)
end)

thanks, rep points for all contributors

3 answers

✓ Accepted answer
strength = script.Parent.TextBox
script.Parent.MouseButton1Down:connect(function() 
    strength.Text = math.random(1,10)
end)

Capatilized T

Make sure to rate this answer up and accept the answer for others

1 comment

0

Why do people downvote the right answer? Nutcases

strength = script.Parent.TextBox
script.Parent.MouseButton1Down:connect(function()
    strength.Text = math.random(1,10)
end)

1 comment

0

Copied from mine

The t in Text must be capitalized on line 3.

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