Making a object damage you by hitting it

Hey everyone! So I was planning on making a car game and wanted something that can damage you (and maybe the car) by touching the certain object. If you can give me a certain script for it, I’d be thankful for it.

This is a good learning opportunity for you to find out how a damage script works.
Head over to the DevHub or Roblox documentation pages and research the following:

  1. Connecting
  2. BasePart.Touched
  3. Humanoid
  4. Humanoid:TakeDamage

Good luck on your research!

1 Like