The actual word 'hit' doesn't necessarily mean anything -- It's a parameter. It's not too different from a variable.
Some functions have built in parameters, and some don't. With non-built in ones, you can even make up your own and call them with an argument (basically a parameter, but it's used in the actual call to the function).
For example:
script.Parent.Touched(connect(function(hit)
print(hit.Parent)
end)
As I previously mentioned, you could make your own functions with parameters:
function add(a, b)
return a + b
end
print(tostring(add(7,3)))
Hope this helped!
3 comments
Thank You i understand know
Unban me from chat pls
Once again, please submit a ticket to helpdesk. Commenting on all of my answers will most likely just prolong your ban.