I'm really bad at scripting. This is supposed to be a script that causes a plate to turn neon/white when it's touched, then turn back to what it was originally (slate/black) after one second after it isn't being touched. Am I missing something, or did I completely do one of the properties wrong?
local function PlayerTouched(Part)
local Parent = Part.Parent
if game.Players:GetPlayerFromCharacter(Parent) then
script.Parent.Material = "Neon"
script.Parent.Color = "Institutional white"
wait(1)
script.Parent.Material = Slate
script.Parent.Color = "Black"
script.Parent.Touched:connect(PlayerTouched)

1 comment
whats the parts name?