How to recover all "BasePart" characters except his?

its may sound stupid but I don’t know how to avoid that its take the basePart of the player I want it take the other (rig, player) except mine

local player = game.Players.LocalPlayer
local character = player.Character

for _, humanoidRootPart in workspace:GetDescendants() do
	if humanoidRootPart:IsA("BasePart") then
		if humanoidRootPart.Name == "HumanoidRootPart" then
			print(humanoidRootPart.Parent.Name)
		end
	end
end
1 Like

where it says if humanoidRootPart:IsA(“BasePart”) put if humanoidRootPart:IsA(“BasePart”) and humanoidRootPart ~= character.HumanoidRootPart.

this ~= it means its not equal too your characters HumanoidRootPart

2 Likes

its so logik why don’t I think lolll Thankssss you !

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.