m = Instance.new("Part",workspace)
m.Size = 7, 1.2, 8
✓ ANSWER ACCEPTED
how do i change a part size in the script?
2 answers
✓ Accepted answer
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)
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?
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
The end on line 3 isn't necessary, and if you can chill with the attitude? Thanks.