Basically, tool is getting a humanoid but instead is giving me "error: Humanoid is not a valid member of Player "Players.TheBuliderMC" - Server - AbilityServer:4"
1 | local Humanoid = script.Parent.Parent.Parent.Humanoid |
The problem here is that you try and get the humanoid as soon as the tool is inside of the player and not in the character
What you want to do inside of your script is:
1 | local Humanoid = nil |
2 | local tool = script.How_many_Parents_for_you_to_get_the_tool |
3 |
4 | tool.Equipped:Connect( function () |
5 | humanoid = tool.Parent:WaitForChild( "Humanoid" ) |
6 | end ) |
This should fix your problem :)