|
| 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 |
|
|
|
| 03 Dec 2017 11:08 AM |
XSize = 5 YSize = 5 ZSize = 5
workspace.Baseplate.Size = Vector3.new(XSize,YSize,ZSize) |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2017 11:15 AM |
What I meant was making it change in size, like increase.
|
|
|
| Report Abuse |
|
|
|
| 03 Dec 2017 11:17 AM |
So in a for loop it keeps growing if you know what I mean
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 03 Dec 2017 11:24 AM |
is there anyway to make the growing smoother
|
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 03 Dec 2017 11:31 AM |
is there any other way to make it smoother growing
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 03 Dec 2017 11:37 AM |
give me a simple example of the math in a for loop
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|