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

So how do I make this TextButton on a surfaceGui work?

1 answer

Try this

local EnlistedButton = script.Parent
-- :WaitForChild() waits until EnlistedFrame is found
local EnlistedFrame = script.Parent.Parent:WaitForChild("EnlistedFrame")

EnlistedButton.MouseButton1Click:Connect(function()
	--This makes it Visible (I PERSONALLY think the if statement was unnecessary)
	EnlistedFrame.Visible = true
end)

1 comment

0

Does not seem to be working.

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