I tried in this way.
Seems like vector3 not working on material.
script.Parent.Material = Vector3.new(“Neon”)
I tried in this way.
Seems like vector3 not working on material.
script.Parent.Material = Vector3.new(“Neon”)
try this:
script.Parent.Material = Enum.Material.Neon
Vector3 is used in 3D space, for example to set the position, orientation or velocity of a part
example:
script.Parent.Position = Vector3.new(0,0,0)
im not the best at explaining stuff so here is a link to an article about vector3
Vector3 is used for positioning items. It takes the xyz coordinates as parameters. As @TFlanigan pointed out, this is the rite way to change the material to neon.
script.Parent.Material = Enum.Material.Neon
These other 2 dudes explained it, but next time check the console and try to figure it out before asking. You should’ve gotten an error because Vector3 is not able to be applied to a Material.
Vector3 is the world position of an object. Using Enums you can do much more, such as change material with Enum.MaterialType.Material.
Vector3 is used for positioning items, try using enum.material
• Hello, Mewsteg. If you’re new to coding probably? Consider reading these details about Vector3.
• And Mystxry12’s information
nooooo that’s not how you use Vector3!
Vector3 are for positions, sizes, orientation, etc. and it’s not for material!
Enum.Material
will help
change to this:
script.Parent.Material = Enum.Material.Neon
What the hell are you doing? Vector3 takes 3 arguments: X, Y, Z. It is used to position things, rotate them and resize them. Why would you use a vector3 on a material anyway?!??!?
Use Enum.Material.Neon
He is probably new to scripting and was confused
Just do script.Parent.MaterialType = Enum.Material.Neon
in remembrance of this legendary post