local m=script.Parent local C=script.Animation1 local r=script.RunAnim local v=m.AI:LoadAnimation(C)local Z=m.AI:LoadAnimation(r)v:Play()v.Looped=true script.Parent.HitBox.Script.Enabled=false model=script.Parent.Parent hum=script.Parent.AI torso=script.Parent.Torso while true do wait(math.random(5,7))if model.PointA~=nil then a=model.PointA hum:MoveTo(a.Position,a)v:Stop()script.Parent.Head["\083\099\097\114\121 \083\099\114\101\097\109"]:Play()script.Parent.HitBox.Script.Enabled=true Z:Play()repeat wait(.1)wait(6)script.Parent.Parent:Destroy()until(a.Position-torso.Position).magnitude<=5 else print("\078\111 \080\111\105\110\116 \065\046")end end
--


local npc = script.Parent

local idleanim = script.Animation1
local runanim = script.RunAnim

local idleanimtrack = npc.AI:LoadAnimation(idleanim)
local runanimtrack = npc.AI:LoadAnimation(runanim)

idleanimtrack:Play()
idleanimtrack.Looped = true
script.Parent.HitBox.Script.Enabled = false

model = script.Parent.Parent
hum = script.Parent.AI
torso = script.Parent.Torso
while true do
	wait(math.random(5,7))
	if model.PointA ~= nil then
		a = model.PointA
		hum:MoveTo(a.Position, a)
		idleanimtrack:Stop()
		script.Parent.Head["Scary Scream"]:Play()
		script.Parent.HitBox.Script.Enabled = true
		runanimtrack:Play()
		repeat
			wait(0.1)
			wait(6)
			script.Parent.Parent:Destroy()
		
		until (a.Position - torso.Position).magnitude <= 5

	else
		print("No Point A.")
	end

end
	
