HurtBrick Welded to R15 Custom Rigged Model does not do dmg to Player

Interact Script:


1 Like

Please add some debugging print statements such as within the ontouch function, and log the hit.Parent, etc.

1 Like

As @theworldis_socruel stated, prints help.
The best thing to do for troubleshooting is to print variables BEFORE if checks.
For example on line 40 you assign hit to the item that Touched the HurtBrick.
insert a new line 41 that reads
print(hit.Name)
so you can see what the item that actually hit the brick is. If it’s an Accessory then hit.parent.Humanoid may not actually be the Humanoid of the player that touched the brick.

1 Like


added prints and it works now

Just adding prints shouldn’t have fixed it.
Did they tell you the information that allowed you to troubleshoot the issue? If so please post your fix here and you can mark that as the solution. It can help others see what the problem was if they are having the same issue.

one in blue circle is old, one in purple is the new one


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.