I was looking at
https://developer.roblox.com/en-us/api-reference/class/Tool
and saw " local humanOther = partOther.Parent:FindFirstChild(“Humanoid”) "
what does partOther.Parent mean
I was looking at
https://developer.roblox.com/en-us/api-reference/class/Tool
and saw " local humanOther = partOther.Parent:FindFirstChild(“Humanoid”) "
what does partOther.Parent mean
What this means is that you’re getting the Parent of that other instance. For example if I put a script in a part, script.Parent
would be a reference to the part.
so its like humanOther is the enemy?
“humanOther” is a reference to the hit model’s humanoid instance (be it a humanoid inside a player’s character model or a humanoid inside an NPC model).