How to make a gui appear when a click detector is clicked?

The click detector is in the block and the script is in the click detector.

So you are saying that local script is inside the click detector which the click detector is inside the block which the block is inside the workspace??

It’s a script not a local, and yes that’s what Im saying

Try this (as a server script in the clickdetector)

script.Parent.MouseClick:Connect(function(plr)
    plr.PlayerGui.ScreenGui.Enabled = true
end)

First of all what type of Gui do you want to make?? If you want a Gui that appears just on the player that clicks it then it’s best if you make this hole thing in the client

Yeah I want to make a script that opens a gui just for the player that clicks the block.

Then there is no reason to involve the server. Just make the same thing as a local script and place it inside the StarterPlayerScripts and fix the paths. Also don’t forget to use the game.Players.LocalPlayer.PlayerGui.ScreenGui and not StarterGui