Like
script.Parent.Touched:connect(function(hit) hit.Parent:findFirstChild("Torso") end
vs
script.Parent.Touched:connect(function(part) part.Parent:findFirstChild("Torso") end
Yes I did look it up http://gyazo.com/28ff4bffc4dbc02d6524ec28b0cd990c
There are no Difference between hit, and part(just the names), But they serve the same job. Like lets say I named it kick
Now lets try it out on Studio:
script.Parent.Touched:connect(function(kick) print(kick.Parent) end) --[ [OUTPUT] ] = Player
This can also be useful for getting the Players, Characters, Humanoid from kick(hit/part), You may ask, How do I get the Player From kick? Well there is a function that does that, It's called GetPlayerFromCharacter
. This helps Users gain properties from the Player.