Interact Script:
Please add some debugging print statements such as within the ontouch function, and log the hit.Parent, etc.
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.
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.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.



