script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then game.Players.LocalPlayer.PlayerGui.Shop.Frame.Visible = true end end)
The Script is inside the part. I know it is not a problem with the gui because i tested it without the part prior.
It works in studio but not in game.
My error I am getting is
Workspace.ShopPart.Script:3: attempt to index field 'LocalPlayer' (a nil value)
i only get it when i test in the start thing.

3 comments
Touched event shouldn't be handled on the client. Also, LocalScripts wouldn't run under OP's part.
"treats the player and client as the same thing" lol they ARE the same thing
Oh yeah. I always forget about the LocalScript restrictions on where they'll run. :P