1 | wait( 3 ) |
2 | Instance.new( "Part" , game.Workspace).Anchored = true |
3 | wait( 2 ) |
4 | Brick = game.Workspace.Part |
5 | Brick.Size.Vector 3. new( 6 , 6 , 6 ) |
6 | wait( 1 ) |
7 | print (Brick.Size) |
To set the part's size, since it is a property you need to use an equal sign to change the value.
1 | Anchored = true |
2 | CanCollide = true |
3 | Transparency = 0.3 |
4 | Size = Vector 3. new( 6 , 6 , 6 ) |
5 | CFrame = CFrame.new( 10 , 100 , 0 ) |
6 | BrickColor = BrickColor.new( "Bright red" ) |
1 | wait( 3 ) |
2 | local Brick = Instance.new( "Part" , game.Workspace) |
3 | Brick.Anchored = true |
4 | Brick.Size = Vector 3. new( 6 , 6 , 6 ) |
5 | wait( 1 ) |
6 | print (Brick.Size) |
Hope it helps!
To set a size, you should use =
to show what you wish to change the size to.
You'd write this line as Brick.Size = Vector3.new(6,6,6)
.
This should work then.