|
| 22 Apr 2016 09:27 PM |
num = script.Parent.num while wait() do wait() script.Parent.num.Value = script.Parent.num.Value *script.Parent.num2.Value end
(num and num2 are values that need to constantly change)
The problem here is, with the while wait() do, it keeps multiplying the number. Is there any way so that, it only does a single multiplication calc when the values are changed? |
|
|
| Report Abuse |
|
|
| 22 Apr 2016 09:34 PM |
deb = true script.Parent.num.Changed:connect(function(prop) if prop=='Value' and not deb then deb = true script.Parent.num.Value = script.Parent.num.Value*script.Parent.num2.Value end wait() deb=false end) |
|
|
| Report Abuse |
|