Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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

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

1 answer

Log in to vote
0
Answered by 3 years ago

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.

Ad

Answer this question