So I want to make a brick change color when someone steps on it and i cant get it to work I have tried this
when onTouch(hit) function Light.Color = Color3.new(255/255, 0/255, 0/255) -- Red end end
Will someone help?
I suggest learning more on how to script on the Roblox Wiki, as that is not how you use a function correctly.
script.Parent.Touched:Connect(function() --When the part is touched script.Parent.Color = Color3.new(255/255,0/255,0/255) --Change the parts color end)
Please accept my answer if this helped!