Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Changing all properties of a brick?

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

✓ Accepted answer

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.

2 comments

0

Bool values are true and false, floats are numbers, and ints are whole numbers (1, 2, 3.. etc)

0

Alright thank you, I'll start researching it more.

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

This discussion is preserved as it was. New answers, comments, and votes are closed.