-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] local npc = script.Parent local humanoidRootPart = npc:WaitForChild("HumanoidRootPart") local Players = game:GetService("Players") while true do local nearestPlayer = nil local nearestDistance = math.huge for _, player in ipairs(Players:GetPlayers()) do if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then local target = player.Character.HumanoidRootPart local distance = (target.Position - humanoidRootPart.Position).Magnitude if distance < nearestDistance then nearestDistance = distance nearestPlayer = target end end end if nearestPlayer then local lookPos = Vector3.new( nearestPlayer.Position.X, humanoidRootPart.Position.Y, nearestPlayer.Position.Z ) humanoidRootPart.CFrame = CFrame.lookAt( humanoidRootPart.Position, lookPos ) end task.wait(0.05) end