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

Exp Gui| Scaling help?

Asked by 8 years ago

Idea Make a basic exp gui that has a chaning bar to the players exp
Problem The bar winds up being way to big, and I don't know how to scale it
Size The size of the bar (When its full) {0, 250},{0, 15}
Code

s = script
gui = s.Parent
bg = gui.background
bar = gui.bar
label = bar.TextLabel

ce = 0
req = 1000

function GetExp()

    while ce < req do
        wait(1)
        ce = ce + 100
        if ce == req then
        req = req + 1000
        ce = 0
        end

        label.Text = ce.."/"..req
        bar.Size = UDim2.new(ce,0,0,0)
    end
end


GetExp()

Thanks :D

Answer this question