Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Script by xmaanzach
- local Player = game.Players.LocalPlayer
- local Nivel = Player.leaderstats:WaitForChild("Nivel")
- local Experiencia = Player.leaderstats:WaitForChild("Experiencia")
- local Xpn = Player.leaderstats:WaitForChild("ExpNeeded")
- local NivelTxt = script.Parent.Nivel
- local Barra = script.Parent.XPBar.Barra
- local ExpTxt = script.Parent.XPBar.EXP
- --// Actualizando la barra de experiencia constantemente //--
- while wait() do
- local BarSize = (Experiencia.Value/Xpn.Value) - 0.02
- if Experiencia.Value == 0 then
- BarSize = 0
- Barra:TweenSize(UDim2.new(BarSize, 0, 0, 30), "Out", "Quad", 0.25)
- else
- Barra:TweenSize(UDim2.new(BarSize, 0, 0, 30), "Out", "Quad", 0.25)
- end
- ExpTxt.Text = "EXP: " .. Experiencia.Value .. "/" .. Xpn.Value
- NivelTxt.Text = "Nivel: " .. Nivel.Value
- end
Advertisement
Add Comment
Please, Sign In to add comment