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 » Scripters
Home Search
 

Re: [HELP] Part Resize

Previous Thread :: Next Thread 
XxCoOrdinatorxX is not online. XxCoOrdinatorxX
Joined: 28 Apr 2012
Total Posts: 50
03 Dec 2017 10:59 AM
http://wiki.roblox.com/index.php?title=API:Class/BasePart/Resize

Can a scripter give me an example script of how it would work, thanks in advance.


Report Abuse
builderboy256 is online. builderboy256
Joined: 15 Jan 2017
Total Posts: 20
03 Dec 2017 11:08 AM
XSize = 5
YSize = 5
ZSize = 5

workspace.Baseplate.Size = Vector3.new(XSize,YSize,ZSize)
Report Abuse
XxCoOrdinatorxX is not online. XxCoOrdinatorxX
Joined: 28 Apr 2012
Total Posts: 50
03 Dec 2017 11:15 AM
What I meant was making it change in size, like increase.


Report Abuse
XxCoOrdinatorxX is not online. XxCoOrdinatorxX
Joined: 28 Apr 2012
Total Posts: 50
03 Dec 2017 11:17 AM
So in a for loop it keeps growing if you know what I mean


Report Abuse
Camper0008 is not online. Camper0008
Joined: 07 Apr 2013
Total Posts: 2504
03 Dec 2017 11:17 AM
Part:Resize(
Enum.NormalId.Top; --which way it is resizing. uses 'normalid's.
2; --how much it will grow. uses 'int's.
)

this will make the part grow 2 studs out to the top if nothing is blocking it.




http://wiki.roblox.com/index.php?title=API:Enum/NormalId
http://wiki.roblox.com/index.php?title=Integer


╴ “I seem to get mentioned alot in videogames.. i wonder why..”
Report Abuse
Camper0008 is not online. Camper0008
Joined: 07 Apr 2013
Total Posts: 2504
03 Dec 2017 11:19 AM
local Part = script.Parent
for i = 1, 10 do
Part:Resize(Enum.NormalId.Left, 1)
wait(1)
end

--grows 'Part' by 1 stud to the left 10 times over the course of 10 seconds


╴ “I seem to get mentioned alot in videogames.. i wonder why..”
Report Abuse
XxCoOrdinatorxX is not online. XxCoOrdinatorxX
Joined: 28 Apr 2012
Total Posts: 50
03 Dec 2017 11:21 AM
anyway to make it look like its growing because i put your script in a for loop and it resizes instantly without it actually changing step by step


Report Abuse
XxCoOrdinatorxX is not online. XxCoOrdinatorxX
Joined: 28 Apr 2012
Total Posts: 50
03 Dec 2017 11:22 AM
it works now


Report Abuse
Camper0008 is not online. Camper0008
Joined: 07 Apr 2013
Total Posts: 2504
03 Dec 2017 11:22 AM
because you didnt add a wait()


╴ “I seem to get mentioned alot in videogames.. i wonder why..”
Report Abuse
XxCoOrdinatorxX is not online. XxCoOrdinatorxX
Joined: 28 Apr 2012
Total Posts: 50
03 Dec 2017 11:24 AM
is there anyway to make the growing smoother


Report Abuse
XxCoOrdinatorxX is not online. XxCoOrdinatorxX
Joined: 28 Apr 2012
Total Posts: 50
03 Dec 2017 11:27 AM
??


Report Abuse
Camper0008 is not online. Camper0008
Joined: 07 Apr 2013
Total Posts: 2504
03 Dec 2017 11:30 AM
sadly it only accepts intvalues

example of intvalues:

1
4
3
22

not intvalues:

22.1
0.5
50.20
1.5


╴ “I seem to get mentioned alot in videogames.. i wonder why..”
Report Abuse
XxCoOrdinatorxX is not online. XxCoOrdinatorxX
Joined: 28 Apr 2012
Total Posts: 50
03 Dec 2017 11:31 AM
is there any other way to make it smoother growing


Report Abuse
Camper0008 is not online. Camper0008
Joined: 07 Apr 2013
Total Posts: 2504
03 Dec 2017 11:35 AM
if you want it to be smooth, you can either do a for loop with some math, or use tweenservice


╴ “I seem to get mentioned alot in videogames.. i wonder why..”
Report Abuse
XxCoOrdinatorxX is not online. XxCoOrdinatorxX
Joined: 28 Apr 2012
Total Posts: 50
03 Dec 2017 11:37 AM
give me a simple example of the math in a for loop


Report Abuse
Camper0008 is not online. Camper0008
Joined: 07 Apr 2013
Total Posts: 2504
03 Dec 2017 11:41 AM
for i = 0, 10, 0.25 do Part.Size = Part.Size + Vector3.new(0, 0.25, 0) Part.CFrame = Part.CFrame + CFrame.new(0, 0.25/2, 0) wait() end --think this would smoothly upscale ####### ### i havent tested it and i dont want to ╴ “I seem to get mentioned alot in videogames.. i wonder why..”
Report Abuse
XxCoOrdinatorxX is not online. XxCoOrdinatorxX
Joined: 28 Apr 2012
Total Posts: 50
03 Dec 2017 11:42 AM
wha?


Report Abuse
Camper0008 is not online. Camper0008
Joined: 07 Apr 2013
Total Posts: 2504
03 Dec 2017 11:43 AM
for i = 0, 10, 0.25 do
Part.Size = Part.Size + Vector3.new(0, 0.25, 0)
Part.CFrame = Part.CFrame + CFrame.new(0, 0.25/2, 0)
wait()
end

--this might work


╴ “I seem to get mentioned alot in videogames.. i wonder why..”
Report Abuse
XxCoOrdinatorxX is not online. XxCoOrdinatorxX
Joined: 28 Apr 2012
Total Posts: 50
03 Dec 2017 11:44 AM
nvm i used tweening and it works well thanks for all your help for telling me about it


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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