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

Baseplate material/color script not working?

Asked by 2 years ago
Edited 2 years ago

I made a script so that when the game loads, it changed the baseplate color to White and the material to neon, but it doesn't seem to be working right. Heres my script:

base = game.Workspace.Baseplate

base.BrickColor = BrickColor.new("Medium stone grey")

base = Enum.Material.Neon

print("Baseplate Manager Loaded")

1 answer

Log in to vote
1
Answered by 2 years ago
base = Enum.Material.Neon

You assigned the material to the 'base' variable instead of the part's material property. What you probably meant to do was this:

base.Material = Enum.Material.Neon
0
I put the local on there so it knows that its looking for Jake821181 2 — 2y
Ad

Answer this question