How to check is Instance player character?

if Tool.Parent = --[[Character]] then

how to check is the instance player character?

sorry guys. i found solution myself again…

if Tool.Parent:FindFirstChild("Humanoid") then
	if game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent) then
local Tool = script.Parent

if Tool:FindFirstAncestorOfClass("Model") then
	print("Character.")
elseif Tool:FindFirstAncestorOfClass("Player") then
	print("Player.")
end

This would probably be the better approach.

bruh it can be just a model or NPC. not a player.

Models/NPCs can’t equip tools unless you explicitly parent one to them.