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

Percentage staying at 0 when it should go up?

Asked by 8 years ago

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

Log in to vote
0
Answered by 8 years ago

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?

Ad

Answer this question