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

I Cant find the player who is sitting?

Seat = script.Parent
player = game.Players.LocalPlayer.Name

Seat.ChildAdded:connect(function(Weld) -- 
  do Weld.Parent:FindFirstChild("Humanoid")
	print(player)
	
end
	
end)	 

I'm trying to find the player who is weld to the seat. then print the name of the player who is sitting on the chair

1 comment

0

Weld.Part0 or Weld.Part1 should be the player's torso.

1 answer

✓ Accepted answer

seat.Occupant returns the humanoid of the sitting player, so seat.Occupant.Parent.Name should give you your answer.

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