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

can I have help to change this part material?

I have a script that changes the property's of a part but I'm trying to change the material but Roblox says unknown global 'BrickMaterial' can I have help here's my code to change the material MagicBrick.BrickMaterial = BrickMaterial.new ("Neon")

2 answers

change it to this and i think it'll work

MagicBrick.Material = Enum.Material.Neon

2 comments

0

Thanks

0

you're welcome!

just go to properties and click on material to change the material or if you want to do it in a code do

local MagicBrick = script.Parent

local MagicBrick is variable and a variable is a name for the thing you want to script. script.Parent is just the Parent of the script so you're making the name = to the part

 MagicBrick.Material = "Neon"

Material is a property in Properties that changes the Material and you making it = to Neon but you to add the Material name inside the " " because Material is a string Value

1 comment

0

Thank you for teaching me how this works

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