So when a player levels up, they should get a GUI message of them leveling up, but it doesn't show up. I am using a local script inside of a ScreenGui.
Script:
local congrats = script.Parent.Info.Congrats
local player = game.Players.LocalPlayer
local gui = script.Parent.Info
local Delay = 0.5
while true do
wait()
if player.leaderstats:WaitForChild("Exp").Value >= player.leaderstats:WaitForChild("ExpNeeded").Value then
if player.leaderstats:WaitForChild("Level").Value == 1 then
gui:TweenPosition(UDim2.new(.25,0,.218,0),"Out","Quint",Delay,true)
wait(3)
gui:TweenPosition(UDim2.new(.25,0,1.218,0),"Out","Quint",Delay,true)
elseif player.leaderstats:WaitForChild("Level").Value == 2 then
gui:TweenPosition(UDim2.new(.25,0,.218,0),"Out","Quint",Delay,true)
wait(3)
gui:TweenPosition(UDim2.new(.25,0,1.218,0),"Out","Quint",Delay,true)
end
end
end

1 comment
First two tweens gotta be “in”