I'm making a game where a player would be a janitor or a mess maker. I really need to work on that last part. That's the basics anyway a little more to it.

I'm having issues with creating a way where if there is a "spill/mess" the janitor should be able to clean it up with a mop. At the same time the spill should cause non janitors to slip then have to respond or lose points. Basically I need help both on the mop side and the spill side.

I'm thinking the script might need to be plugged into the mop only but honestly I have no idea where to go from here.

FYI. I am relatively new to this.

2 comments

0

Try using :Destroy() to remove the part (don't forget to use a SERVER SCRIPT) if you need more help than just a comment, add me as friend

0

You could have the part detect if it's touched by the mop, then delete itself. (You can do that with puddle.Touched:Connect(function(hit) if hit == mop then puddle:Destroy() end end) You could also put the script in the mop itself, just make sure the script is testing for the name (and that all the puddles have the same name)