I have a part that when clicked should open a ScreenGui named All, but it doesn't and I have forgotten how ClickDetectors work. LocalScript:
game:GetService('Players').LocalPlayer:WaitForChild('PlayerGui')
local click = script.Parent.ClickDetector
local gui = script.Parent.All
click.MouseClick:Connect(function()
gui.Parent = game.Players.LocalPlayer.PlayerGui
end)
Any help is appreciated!

2 comments
ClickDetectors can only run via ServerScripts,
how would i do it then?