Hello everyone!! I'm trying to make a baking game where players can select which cookie flavour they want to bake, then serve it to customers. The players will pick-up the ingredients for it then drop it in a funnel, and that's where I want it do detect the colour of the part that's being dropped so it can output different types of cookies. Does anybody know a way to do that?
✓ ANSWER ACCEPTED
Is it possible to make a part detect the colour of a part passing through it?
1 answer
✓ Accepted answer
When something touches the part you can get the BrickColor of the part.
local part = yourPartHere
part.Touched:Connect(function(hit)
warn(hit.BrickColor)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Do you know how to use a Touched Event? Use that and then get the property Color3 or BrickColor of the part