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

Changing all properties of a brick?

Asked by
Saiier 5
8 years ago

So I'm wanting to be able to change every property in a brick using a script, and I don't know what to use for some of the properties. So far I know reflectance, material, transparency, and color. I just started scripting yesterday so I haven't really found out other ways to change something besides game.Workspace.A3.Material or game.Workspace.Part.BrickColor = BrickColor.new("Really red")

Does anyone know how to change the other properties such as position, rotation, size, and cancollide? Thanks! -Saiier

2 answers

Log in to vote
1
Answered by 8 years ago

Solution

There is a tab called Properties under every instance/class I think, if you can't find it then look up the class and there will be a list of properties. The only problem is that each property has a different dataset most of the time such as boolean/brickcolor and so on. So be wary of the property type when changing it. An example

part.Position = Vector3.new(1,1,1) -- Position is the property and Vector3 is the property data type.
0
Bool values are true and false, floats are numbers, and ints are whole numbers (1, 2, 3.. etc) YellowoTide 1992 — 8y
0
Alright thank you, I'll start researching it more. Saiier 5 — 8y
Ad
Log in to vote
0
Answered by
FiredDusk 1466 Moderation Voter
8 years ago

position, rotation and size all use something called "Vector3.new"

Answer this question