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

Can you change the material of parts using a script?

Asked by 9 years ago

i want to use a script to change material of a gun model. i want to change the material of the whole gun with 1 script. can i do that? can i change material of a model?

1 answer

Log in to vote
0
Answered by 9 years ago

You can change the material of a part through the part's Material property:

game.Workspace.Part.Material="Neon"

If you want to be able to see all of the materials as you type it in, you can use Enum.Material:

game.Workspace.Part.Material=Enum.Material.Neon

You can read up more on enums and materials here and here.

0
could yoou show me how would i use that?? i dont understand it. i tried puting that in but nothing happend thegamingpro566 0 — 9y
0
Well, unfortunately I can't really help you there, due to the fact I have no idea what the gun's design is. ChipioIndustries 454 — 9y
Ad

Answer this question