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

could i have assistance to see if this script is correct?

Asked by 4 years ago
script.Baseplate.Touched:connect(function)
    script.Baseplate.Brickcolor = BrickColor.new("Bright red")
    script.Baseplate.Material = Material.new("neon")
end) 
0
Be sure to accept my answer! Shawnyg 4330 — 4y
0
how Eduazz123 2 — 4y

1 answer

Log in to vote
1
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

So close! For the Material, you'd need to use Enum

script.Baseplate.Touched:Connect(function() -- Also messed up your connection line
    script.Baseplate.Brickcolor = BrickColor.new("Bright red")
    script.Baseplate.Material = Enum.Material.Neon
end) 

Note: I saw you used script.Baseplate which means the Baseplate would be WITHIN the Script! Instead, you may be looking for script.Parent.Baseplate

0
thank you mr shawnyg Eduazz123 2 — 4y
1
I accepted this. This website runs into this situation too many times. Ziffixture 6913 — 4y
Ad

Answer this question