Oskee
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 297 |
|
|
| 29 Sep 2014 09:15 PM |
expand this block's size(3.2, 2.2, 3) all together? This was my try but it failed.
while true do wait(0.001) script.Parent.Size=Vector3.new(0,math.rad(1),0) wait(15) wait(0.001) script.Parent.Size=Vector3.new(0,math.rad(-1),0) end
|
|
|
| Report Abuse |
|
|
cole7778
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 7827 |
|
|
| 29 Sep 2014 09:18 PM |
| could you explain what you are tying to do better please? |
|
|
| Report Abuse |
|
|
Oskee
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 297 |
|
|
| 29 Sep 2014 09:26 PM |
| I am trying to expand a block(from all sides) and then 10-15 seconds later I want it to decrease back to normal. and repeat. |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2014 09:31 PM |
while wait() do script.Parent.Size = Vector3.new(5,5,5)--New Size wait(15) script.Parent.Size = Vector3.new(1,1,1)--Normal Size end --Not sure if that will work but test it out. |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 29 Sep 2014 09:34 PM |
... local cf = script.Parent.CFrame script.Parent.FormFactor = "Custom" while true do for i = 1, 45 do wait(1/3) script.Parent.Size=script.Parent.Size+Vector3.new(.1,.1,.1) script.Parent.CFrame = cf end
for i = 1, 45 do wait(1/3) script.Parent.Size=script.Parent.Size-Vector3.new(.1,.1,.1) script.Parent.CFrame = cf end end |
|
|
| Report Abuse |
|
|
Oskee
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 297 |
|
|
| 29 Sep 2014 09:37 PM |
^ it changes the size. But when I mean expand I mean like every second the numbers go up +.1 i.e (3,3,3) --> (3.1,3.1,3.1) --> 3.2,3.2,3.2) and so on. But I don't want to have to type all of that so I meant for it to go +.1
(like you can do with a leaderboard stat, value+20) |
|
|
| Report Abuse |
|
|
Oskee
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 297 |
|
|
| 29 Sep 2014 09:38 PM |
when I did "^" I was directing it to the other person.
@wazaap lol when I tested it, it was popping around like a popcorn. |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 29 Sep 2014 09:39 PM |
| was this what you wanted though. |
|
|
| Report Abuse |
|
|
Subete
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 917 |
|
|
| 29 Sep 2014 09:40 PM |
local cf = script.Parent.CFrame script.Parent.FormFactor = "Custom" local initialsize = 3 while true do initialsize = initialsize + .1 for i = 1, 45 do wait(1/3) script.Parent.Size=script.Parent.Size+Vector3.new(initialsize + .1,initialsize + .1,initialsize + .1) script.Parent.CFrame = cf end
for i = 1, 45 do wait(1/3) script.Parent.Size=script.Parent.Size-Vector3.new(.1,.1,.1) script.Parent.CFrame = cf end end
Not sure what you mean but.. does that help? |
|
|
| Report Abuse |
|
|
Oskee
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 297 |
|
|
| 29 Sep 2014 09:43 PM |
| I want it to "grow" right before your eyes. Fluidly, not popping. I thank you for helping though, you guys are on the right track. |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 29 Sep 2014 09:44 PM |
u could just anchor the part. alternatively remove all lines with a cframe in it. |
|
|
| Report Abuse |
|
|
Subete
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 917 |
|
|
| 29 Sep 2014 09:45 PM |
| Change the wait to game:GetService("RunService").Stepped:wait() |
|
|
| Report Abuse |
|
|
Oskee
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 297 |
|
|
| 29 Sep 2014 09:49 PM |
| Ok, from both of your posts, I got it to work, Thanks! But there is still 1 problem.. it shrinks for like 1 second and then keeps growing. So basically the shrinking proccess needs to be longer. I'll see if I can do it on my own. |
|
|
| Report Abuse |
|
|