this is my script
local plr = game.Players.LocalPlayer
print("player defined")
local stats = plr:WaitForChild("leaderstats")
print("Leaderstats Loaded")
local function UpdateTextLabel()
script.Parent.Text = "Level: "..stats.Level.Value.." XP: "..stats.Exp.Value.." / "..stats.MaxExp.Value
end
print("Function loaded")
print(script.Parent.Text)
local level = stats.Level
local MaxExp = stats.MaxExp
local Exp = stats.Exp
print("leaderstats defined")
level:GetPropertyChangedSignal("Value"):Connect(UpdateTextLabel())
MaxExp:GetPropertyChangedSignal("Value"):Connect(UpdateTextLabel())
Exp:GetPropertyChangedSignal("Value"):Connect(UpdateTextLabel())
im trying to make a level up gui but it is not updating, any suggestions or tips to make it work? thanks
