Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I change the hitbox of a player? [closed]

Asked by 5 years ago

I have a gun that I want to use for my game that I am making. I also have created armor for players to use. The only issue is that when the player puts on the armor, they can not be shot. This is because the armor is created of parts that block the bullet. I think that the solution is to enlarge the hitbox of the player when they have the armor on, but I do not know how to do this. Any help?

0
Don't enlarge the hitbox. Just do a check whenever the gun bullet hits something and check if the thing it hit has an object named "Armour" or something User#24403 69 — 5y

Closed as Not Constructive by User#24403, User#25115, and theking48989987

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Put the armor in the Player's Character and then use Humanoid.Touched to find when any part of the Character is touched, including the armor.

Ad