Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local exp = player:WaitForChild("leaderstats"):WaitForChild("Exp")
- local axp = player:WaitForChild("leaderstats"):WaitForChild("ExpNeeded")
- while true do
- wait()
- local expBarSize = (exp.Value/axp.Value) - 0.02
- if exp.Value == 0 then
- expBarSize = 0
- script.Parent:TweenSize(UDim2.new(expBarSize, 0, 0, 20), "Out", "Quad", 0.25)
- else
- script.Parent:TweenSize(UDim2.new(expBarSize, 0, 0, 20), "Out", "Quad", 0.25)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment