I have a problem! I want to click on a part and then I want a click detector to open a gui in the player's PlayerGui Folder. But I don't know how to find the right player! Please help me someone
This code is inside a LocalScript which is in a ClickDetector which is in a part
script.Parent.MouseClick:Connect(function(player)
player.PlayerGui.ScreenGui.ImageLabel.Visible = true
end)

2 comments
char isn't the character
Sorry, I fixed that. Now it should be work