I did a punch animation, and I want to know a way (as light and lagless as possible) to check if the player’s hand punches a Part (which I made is a giant stone, so it’s a meshapart), the reason why I want it to be light because it’s going to have a lot of areas to punch, so I’ll need to check all areas every time players punch
I looked for some alternatives but they told me that they cause a lot of lag, so I need a solution with as little lag as possible
Alternatively to what @Lua_Basics said, you could probably use rays but this would require more calculations. If you wanted your punching thing to be “physics” based then using touched most likey will be your best bet.
LeftHand or RightHand of a player is a instance of the character, player.Character.LeftHand so you would set up a touched event with:
local Character = player.Character or player.Character:Wait() --- to ensure that the character has loaded first
local LeftHand = Character.LeftHand -- Left Hand of the player
LeftHand.Touched:Connect(function(Hit)
---Do whatever
end