Uhhhh, so i got this unexpected error, andddd yep.
for _, v in pairs(game.Workspace:GetChildren()) do if v.Name ~= "Anonymous" and v:FindFirstChild("Humanoid") ~= nil and CheckDist(v.HumanoidRootPart - script.Parent.Torso) <= 70 then target = v
dude, it's because your trying to subtract a torso and humanoid rootpart, these are objects/instances