script.Parent.Touched:Connect(function(HIT)
local player = game.Players:GetPlayerFromCharacter(HIT.Parent)
local meep = game.Players.LocalPlayer.PlayerGui.ScreenGui.Shop
meep:TweenPosition(UDim2.new(0.5,0,0.6,0),'In','Bounce',0.5)
end)
script.Parent.TouchEnded:Connect(function(HIT)
local player = game.Players:GetPlayerFromCharacter(HIT.Parent)
local meep = game.Players.LocalPlayer.PlayerGui.ScreenGui.Shop
meep:TweenPosition(UDim2.new(1.5,0,0.6,0),'Out','Bounce',0.5)
end)
This is a script to open a shop gui . It is in a normal script in a brick. It worked fine as well, until i added tweens. The tweens never worked in servers. The Gui just never shows up.
Can you please identify the problem and help me out?
EDIT: The first script's problem was solved. I accidentally uses Localplayer in a normal script XD.
