Trying to create a humanoid shield for the player

Hi, so I’m working on a commission for a shield ability. Basically, you get a shield around your character that protects you from projectiles.

Issue is, there’s dozens of pre-existing weapons that I really can’t go back and modify to use different logic to account for shield. So, this forces me to look at other options.

I thought of using a humanoid-NPC model that acts as a shield. I made a model with a humanoid and a Torso part in it, I then weld the torso to the player’s root part. However, this creates horrible collision problems with the player itself. I tried using Collision Groups so the shield’s parts do not collide with the player’s limbs, but that surprisingly did nothing. If I delete the humanoid in the model, these problems dissipate.

Any ideas for this? :confused:

Thanks.

1 Like

No no no no no no no no no no and no.

Roblox does not like humanoids being used for things that are not characters. How do you deal damage with your other weapons? If you use :TakeDamage then a ForceField object can prevent the health from decreasing (although there’s no way to disable the visual effect). If that’s not an option, I would create a module or have a function accessible by all your weapons and then just use the Find Results panel to find/replace all instances of taking away health with your new function.

2 Likes

Yeah, I figured it was a hacky solution :joy:

Thanks for the suggestions.

1 Like