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

Custom Bar GUI?

Asked by
hudzell 238 Moderation Voter
10 years ago

I am trying to make a bar, like stamina, or hunger or something. But I cannot figure out how. Here's the script I have at the moment, and the layout is here.

while true do
    if script.Value.Value > 0 then
        wait(.1)
        script.Value.Value = script.Value.Value - 1
    else
        wait(.1)
        return
    end
end

script.Value.Changed:connect(function(change)
    script.Parent.Size = UDim2.new(0, script.Value.Value, 0, 25)
end)

1 answer

Log in to vote
-2
Answered by 10 years ago

Are there any errors? Did you make sure that the Value.Value is greater than 0?

0
Yes I did, and no, there are no errors hudzell 238 — 10y
Ad

Answer this question