Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- MainFrame
- -- ExpBar
- -- ExpBar
- -- Animation
- 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)
- 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
- -- MainFrame
- -- CurrentLevel
- -- GetLevel
- local player = game.Players.LocalPlayer
- local level = player:WaitForChild("leaderstats"):WaitForChild("Level")
- script.Parent.Text = "Level:" .. level.Value
- level.Changed:Connect(function(value)
- script.Parent.Text = "Level:" .. value
- end)
- -- ExpText
- local player = game.Players.LocalPlayer
- local exp = player:WaitForChild("leaderstats"):WaitForChild("Exp")
- local axp = player:WaitForChild("leaderstats"):WaitForChild("ExpNeeded")
- while true do
- wait()
- script.Parent.Text = exp.Value.."/"..axp.Value
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement