I have a car shop GUI I have made and I want it to open up by stepping on a part. I have a part down and a local script. The local script has
script.Parent.Touched:connect(function()
local player = game.Players.LocalPlayer
player.PlayerGui.Carshop.Frame.Visible = true
end)

3 comments
What's wrong with it? This has to be in a normal Script.
This answer works. There's nothing wrong with it...
This isn't actually the best way to get a player.