script.Parent.Touched:Connect(function(HIT)
local player = game.Players:GetPlayerFromCharacter(HIT.Parent)
local meep = game.Players.player.PlayerGui.ScreenGui.Shop
meep:TweenPosition(UDim2.new(0.5,0,0.6,0),'In','Bounce',0.5)
wait(0.5)
end)
script.Parent.TouchEnded:Connect(function(HIT)
local player = game.Players:GetPlayerFromCharacter(HIT.Parent)
local meep = game.Players.player.PlayerGui.ScreenGui.Shop
meep:TweenPosition(UDim2.new(1.5,0,0.6,0),'Out','Bounce',0.5)
wait(0.5)
end)
So, the title is pretty self explanatory.
in line 3 and 10, there is
local meep = game.Players.player.PlayerGui.ScreenGui.Shop
The script is not recognizing "player" as a variable and thinks it is a real child of player. How do i fix this?

1 comment
Oh wow! XD i'm so stupid. Thanks for your answer!