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

How do I open a gui with a button, cause in the properties it says enabled but i cant see it?


local HelpGUI = game.StarterGui.HelpGUI
local help = script.Parent

help.MouseButton1Click:Connect(function()
	HelpGUI.Enabled = true
end)

1 answer

✓ Accepted answer

Issue

You are using game.StarterGui.HelpGUI even though StarterGui is a holder for GUI objects and then when someone joins.

Fix

You change local HelpGUI = game.StarterGui.HelpGUI to local HelpGUI = game.Players.LocalPlayer.PlayerGui.HelpGUI, make sure this is all in a localscript and not a serverscript!

local HelpGUI = game.Players.LocalPlayer.PlayerGui.HelpGUI
local help = script.Parent

help.MouseButton1Click:Connect(function()
    HelpGUI.Enabled = true
end)

1 comment

0

Thanks, this helped!

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