Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

GUI button help?

Asked by
mavens 5
8 years ago

EDIT: Nevermind, I fixed it. I accidently made the frame invisible when it gets cloned into PlayerGui.

So, im trying to do this so that when you click a GUI TextButton, a window pops up. I have no idea why this isn't working:

(Note: it's in a localscript.)

local serverstorage = game:GetService('ServerStorage')
local gui = serverstorage.help1
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
    gui:Clone().Parent = player.PlayerGui
end)

Answer this question