Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

i have a question about hit.parent stuff, its just for my scripting knowledge can anyone answer?

if game.Players:GetPlayerFromCharacter(hit.Parent) then

So this means that if the player has a humanoid then continue Right??

1 answer

Basically yeah.

if game.Players:GetPlayerFromCharacter(hit.Parent) then 


end

The code will check if the parent of what hit it is a character/player.

This discussion is preserved as it was. New answers, comments, and votes are closed.