This is a basic script that seems to work in studio mode, but not online.
local player = game.Players.LocalPlayer
player.leaderstats.Points.Changed:connect(function()
script.Parent.Parent:TweenPosition(UDim2.new(0.4, 0, 0.2, 0), "Out", "In", 1.5, true)
wait(5)
script.Parent.Parent:TweenPosition(UDim2.new(0.4, 0, 1, 0), "Out", "Back", 1.5, true)
end)

2 comments
Is this a Script or a LocalScript?
Script, why?