script.Parent.Touched:Connect(function(HIT) local player = game.Players:GetPlayerFromCharacter(HIT.Parent) player.PlayerGui.ScreenGui.Shop.Visible = true local meep = game.Players.LocalPlayer.PlayerGui.ScreenGui.Shop meep:TweenPosition(UDim2.new(0.5,0,0.6,0),'In','Sine',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),'In','Sine',0.5) player.PlayerGui.ScreenGui.Shop.Visible = false end)
the second tween messes everything up.
thisis a local script in a brick
you dont want to the make the gui visible or invisible. Just make it start off of the screen.
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','Sine',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),'In','Sine',0.5) end)