sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
|
| 13 Oct 2015 04:23 PM |
How would you make a part (Its a sphere) get bigger over time? I tried this but didnt work.
s = script.Parent wait(2) for I = 1,27 do wait() s.Size = s.Size + Vector3.new(0,0,0,10) wait(.5) end
Any help? |
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
| |
|
|
| 13 Oct 2015 04:40 PM |
local times = 100 local increment = Vector3.new(0.25,0.25,0.25) local time = 1 local part = workspace.Part
for i = 1,increment do part.Size = part.Size + increment wait(time) end |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2015 04:41 PM |
oops
local times = 100 local increment = Vector3.new(0.25,0.25,0.25) local time = 1 local part = workspace.Part
for i = 1,times do part.Size = part.Size + increment wait(time) end |
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
| |
|
|
| 13 Oct 2015 04:43 PM |
another fix..
local times = 100 local increment = Vector3.new(0.25, 0.25, 0.25) local time = 1 local part = workspace.Part
part.FormFactor = Enum.FormFactor.Custom
for i = 1, times do part.Size = part.Size + increment wait(time) end |
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
| |
|
|
| 13 Oct 2015 04:48 PM |
| edit the part variable To point to the part..... |
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
|
| 13 Oct 2015 04:48 PM |
I did, I changed it to script.Parent The script is inside the part. |
|
|
| Report Abuse |
|
|
| |
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
| |
|
|
| 13 Oct 2015 04:52 PM |
| is it enabled?is it a server script? what happens? |
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
|
| 13 Oct 2015 04:54 PM |
Is what enabled? Yes, its a normal script. Nothing is happening, its staying the same. |
|
|
| Report Abuse |
|
|
| |
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
| |
|
|
| 13 Oct 2015 04:56 PM |
| hmm.. have any ideas whats causing this? |
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
| |
|
| |
|
|
| 13 Oct 2015 04:59 PM |
This Sir,
s = script.Parent wait(2) for i = 1,27 do wait() s.Size = Vector3.new(s.Size.X+1,s.Size.Y+1,s.Size.Z+1) wait(.5) end
If you want the sphere to stretch in non symmetrical ways, then you need to make script.Parent a 'Block' not a 'Ball', then insert a special mesh that is a sphere type. |
|
|
| Report Abuse |
|
|
robotmega
|
  |
| Joined: 16 May 2009 |
| Total Posts: 14084 |
|
|
| 13 Oct 2015 04:59 PM |
s = script.Parent s.FormFactor = "Custom" wait(2) for I = 1,27 do wait() s.Size = s.Size + Vector3.new(10,10,10) wait(.5) end
|
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
|
| 13 Oct 2015 05:02 PM |
| Both of your's work. Thank you. |
|
|
| Report Abuse |
|
|
| |
|