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

GUI Button not working, someone help me fix?

this script isn't doing anything. No errors and nothing in the output.

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

stumped on this...

1 answer

Try this one

local Gui = script.Parent

function onClicked()
if script.Parent.Frame.Visible == false then
script.Parent.Frame.Visible = true
script.Parent.Frame.TextLabel.Visible = true
else
script.Parent.Frame.Visible = false
script.Parent.Frame.TextLabel.Visible = false
end
end

Gui.MouseButton1Click:connect(onClicked)

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