Ok so I made a function script to that if a something touches a brick, then it makes another brick turn a different color, but I wont work so here is my script
function onTouched(hit) Workspace.Papi1.BrickColor = BrickColor.new("Institutional white") wait(0) end script.Parent.Touched:connect(onTouched)
So if someone could reply with the correct script that would be great! Thanks
script.Parent.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") then part = game.Workspace["Papi1"] part.BrickColor = BrickColor.new("Institutional white") end end)
I know why. Instead of Workspace put game.Workspace or workspace