game.Players.PlayerAdded:connect(function(player)
local stats = Instance.new("IntValue", player)
stats.Name = "leaderstats"
local level = Instance.new("IntValue", stats)
level.Name = "Level"
local exp = Instance.new("IntValue", stats)
exp.Name = "Exp"
local cash = Instance.new("IntValue", player)
cash.Name = "Cash"
local class = Instance.new("StringValue", player)
class.Name = "Class"
class.Value = "Laser"
local team = Instance.new("StringValue", player)
team.Name = "Team"
team.Value = "White"
player:WaitForDataReady()
player.leaderstats.Level.Value = player:LoadNumber("Level")
player.leaderstats.Exp.Value = player:LoadNumber("Exp")
player.Cash.Value = player:LoadNumber("Cash")
level.Changed:connect(function(level)
print("Levelup")
levelupframe:TweenPosition(UDim2.new(0.5, -150, 0.5, -50), "Out", "Quad", 1, false)
leveluptext.Text = "You have leveled up to Level: " .. level
levelupframe.CashText.Text = "Cash + 50"
wait("3")
levelupframe:TweenPosition(UDim2.new(0, -300, 0.5, -50), "Out", "Quad", 1, false)
end)
end)
There is nothing printing in the output

2 comments
Try to do it without the WaitForChild's. If that doesn't work then make .changed another function bellow and remove it from top. Can't say i'll be right
still dosent work :/