Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Custom Bar GUI?

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

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

1 comment

0

Yes I did, and no, there are no errors

This discussion is preserved as it was. New answers, comments, and votes are closed.