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

Percentage staying at 0 when it should go up?

I need the percentage to go up from 0% to whatever the percentage is that I'm calculating. But for some reason it just stays at zero instead of rising at all.

RFrame = script.Parent.RFrame
LFrame = script.Parent.LFrame
LValue = LFrame.TotalAgreed.Value.Value
RValue = RFrame.TotalAgreed.Value.Value

for i = 0,(RValue/(RValue+LValue)),(1/(LValue/(LValue+RValue))) do
	RFrame.Percent.Text = (i.."%")
	wait(1/(RValue/(RValue+LValue)))
end

1 answer

Well, since I'm not fully sure on how your game is coding, I may not be correct. However, it seems like you have value twice in the* LValue* and* RValue*, and that have be the cause. Any chance you could help out the hierarchy of this system?

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