Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm currently trying to create an EXP bar, but it's not really working out. How would I create one?

Asked by 8 years ago

This is the script for the leaderboard that I want to use

01local maxlevel = 100
02 
03game.Players.PlayerAdded:connect(function(player)
04    local stats = Instance.new("IntValue", player)
05    stats.Name = "leaderstats"
06 
07    local azteige = Instance.new("IntValue", stats)
08    azteige.Name = "AZTEIGE"
09    azteige.Value = 1
10 
11    local exp = Instance.new("IntValue", stats)
12    exp.Name = "EXPERIENCE"
13    exp.Value = 0
14 
15    local astex = Instance.new("IntValue", stats)
View all 29 lines...

Here is a link of the GUI that I wanna use for this http://imgur.com/dEnQMbZ

0
Can you show us the actual code you are having trouble with? TheDeadlyPanther 2460 — 8y

1 answer

Log in to vote
0
Answered by
Aepeus 59
8 years ago

I did not test but hopefully this helps!

01while true do
02wait()
03local plr = game.Players.LocalPlayer
04local stats = plr:WaitForChild('leaderstats')
05local lvl = stats:WaitForChild('AZTEIGE')
06local xp = stats:WaitForChild(EXPERIENCE')
07local extralevel = azteige.Value
08local expneed = ((extralevel * 2) -1) * 200
09 
10local math = xp.Value / expneeded
11script.Parent[FRAME]:TweenSize(math,0,1,0),"Out", "Quad", .5)
12end
0
Accept if this helped? Aepeus 59 — 8y
Ad

Answer this question