Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do i change a part size in the script?

Asked by 9 years ago
m = Instance.new("Part",workspace)
m.Size = 7, 1.2, 8

2 answers

Log in to vote
3
Answered by
woodengop 1134 Moderation Voter
9 years ago

How do I change a part size in the script?

You use the Vector3.new, Vector3 can be used to resize/reposition parts.

What is Vector3.new?

Vector3 is a userdata that contains 3 values: X Coordinate, Y Coordinate, Z Coordinate.

  • X is a sideways component(width)

  • Y is the vertical component(height)

  • Z is the forward component(Depth)

m = Instance.new("Part",workspace)
m.Size = Vector3.new(7, 1.2, 8)
Ad
Log in to vote
-1
Answered by 9 years ago

You can use the propeties to make a part that will have some sizes, Like,If i want to create a part called "Partty" And want it with the sizes: 3,4,2,I can do the next script to make it:

Partty  = Instance.new("Part",Workspace)
Partty.Size = Vector3.new(3,4,2)
end

And thats the script,Now you happy?

0
The end on line 3 isn't necessary, and if you can chill with the attitude? Thanks. xPolarium 1388 — 9y

Answer this question