|
| 18 Apr 2017 12:09 PM |
function grow() while true do val = script.Value.Value c = script.Parent.CFrame script.Parent.Size = script.Parent.Size + val script.Parent.CFrame = c wait(1/30) end end grow()
Basically I want it to grow faster and faster gradually |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2017 12:11 PM |
what do you mean by "run?" do you mean every frame or every time the script is enabled?
|
|
|
| Report Abuse |
|
|
AxonMega
|
  |
| Joined: 29 Aug 2014 |
| Total Posts: 2403 |
|
|
| 18 Apr 2017 12:15 PM |
local function grow() while true do local val = script.Value.Value local c = script.Parent.CFrame script.Parent.Size = script.Parent.Size + Vector3.new(val.Value, val.Value, val.Value) script.Parent.CFrame = c wait(1/30) end end grow()
val.Value = val.Value + 1 |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2017 12:42 PM |
Assuming the value inside of the script is a NumberValue and not a Vector3 value, then you'd want to change this line...
script.Parent.Size = script.Parent.Size + val
to
script.Parent.Size = script.Parent.Size * val
Otherwise, if script.Value is a Vector3 value, it should work fine (although it won't accelerate its growth as time goes on). |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2017 02:05 PM |
| This thread helped me a lot thank you for the people who posted |
|
|
| Report Abuse |
|
|