Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Color changing conveyor belt?

how do i change the color of an object when it touches a specific object?

1 answer

✓ Accepted answer

We can't make scripts for you but we can help you start one! Here is basically how to do it:

  1. Touched event
  2. BrickColor.Random()

#Touched Touched runs when someone touches the part:

script.Parent.Touched:connect(function(p)
	print(p.Name.." touched this part.")
end)

#BrickColor.Random() This chooses a random color out of the 64 different brickcolors there are on roblox(There are actually 100+ brick colors but some colors do not show up.)

workspace.Part.BrickColor = BrickColor.Random()


Find a way to mix these together and you've got your script! Hope it helps!

This discussion is preserved as it was. New answers, comments, and votes are closed.