how do i change the color of an object when it touches a specific object?
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 runs when someone touches the part:
1 | script.Parent.Touched:connect( function (p) |
2 | print (p.Name.. " touched this part." ) |
3 | end ) |
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.)
1 | workspace.Part.BrickColor = BrickColor.Random() |
Find a way to mix these together and you've got your script! Hope it helps!