game.Players.PlayerAdded:connect(function(plr) local stats = Instance.new("Model", plr) stats.Name = "Stats" local Money = Instance.new("IntValue", stats) Money.Name = "Money" local xp = Instance.new("IntValue", stats) xp.Name = "XP" local XPMAX = Instance.new("IntValue", stats) XPMAX.Name = "XPMAX" XPMAX.Value = 1000 local fill = script.Parent.Fill local xpNum = script.Parent.TextLabel while wait() do wait(1) fill.Size = UDim2.new(xp.Value/XPMAX.Value,0,0,30) xpNum.Text = xp.Value.."/"..XPMAX.Value.."-XP" end end)
localscript inside startergui
It works inside the game, but not in roblox studio? Filtering is enabled