Guest User

help

a guest
Jun 12th, 2019
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local exp = player:WaitForChild("leaderstats"):WaitForChild("Exp")
  3. local axp = player:WaitForChild("leaderstats"):WaitForChild("ExpNeeded")
  4.  
  5. while true do
  6. wait()
  7. local expBarSize = (exp.Value/axp.Value) - 0.02
  8. if exp.Value == 0 then
  9. expBarSize = 0
  10. script.Parent:TweenSize(UDim2.new(expBarSize, 0, 0, 20), "Out", "Quad", 0.25)
  11. else
  12. script.Parent:TweenSize(UDim2.new(expBarSize, 0, 0, 20), "Out", "Quad", 0.25)
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment