generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

How do I

Previous Thread :: Next Thread 
Oskee is not online. 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 is not online. 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 is not online. 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
4444vince2 is not online. 4444vince2
Joined: 08 Nov 2008
Total Posts: 4880
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 is not online. 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 is not online. 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 is not online. 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 is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
29 Sep 2014 09:39 PM
was this what you wanted though.
Report Abuse
Subete is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image