I am currently having a problem where when i click a button it will not pop up the gui, please help:
local sd = game.StarterGui.SchoolShopGUI.DirtSwordInfo script.Parent.MouseButton1Click:Connect(function() sd.Visible = true end)
Try this.
local plr = game.Players.LocalPlayer local sd = plr.PlayerGui.SchoolShopGUI.DirtSwordInfo script.Parent.MouseButton1Click:Connect(function() sd.Visible = true end)
Also, make sure this is a localscript.
I don't see an error in the script unless what you're trying to set visible to true to is not a frame or anything without the property of "Visible". Maybe add wait()
or WaitForChild
local plr = game.Players.LocalPlayer wait() local sd = plr:WaitForChild("PlayerGui"):WaitForChild("SchoolShopGUI").DirtSwordInfo script.Parent.MouseButton1Click:Connect(function() sd.Visible = true end)