Anyone know how it works? Like, I tried this to test:
function onTouched(hit)
if hit.Parent.Humanoid ~= nil then
hit.Parent.Name:GetPlayerFromCharacter(player)
print(player)
end
end
script.Parent.Touched:connect(onTouched)
and it returned:
attempt to call method 'GetPlayerFromCharacter' (a nil value)
although I am quite sure that it exists... |