script.Parent.MouseClick:connect(function(Clicked)
game.Players:GetPlayerFromCharacter(Clicked).PlayerGui.ScreenGui.Frame.Visible = true
end)
I'm very new to scripting, so sorry if this is a simple error or wrong all together. I'm trying to be able to click a brick and have a Gui pop up, but whatever I do, it will not work. I'm not getting any errors in the output box, and my Gui works because if I make it visible in StarterGui and test it, I see it. The enter and close buttons work, too, but whatever script I put in the part that is clicked seems to not work. Please help! Thank you. PS - I have a clickdetector, script, and Music in the part.

3 comments
MouseClickalready returns the player who clicked, so that first bit's redundant.script.Parent.MouseButton1Click:Connect(function()
^^