What im trying to achieve is a simple script that will allow two objects to be inside the same script and each will do something if a condition is met. So object one is block & object two is rock.
if target == block then
-- game.Workspace.Part.Brickcolor = game.Workspace.Part.Brickcolor.New("Yellow")--
else if the target == rock then
-- game.Workspace.Part.Brickcolor = game.Workspace.Part.Brickcolor.New("Yellow")
so i would like them to both turn the part yellow, but i only want to type out the brickcolor once, not twice.also keep in mind i;m using block & rock but i will in reality be using about 500 differently named objects, please Help!
