nextjump=0 chasing=false variance=4 damage=26 attackrange=5 sightrange=100 runspeed=26 wonderspeed=16 healthregen=true colors={"\082\101\097\108\108\121 \098\108\097\099\107"}function raycast(c,m,V)local R,O=game.Workspace:FindPartOnRay(Ray.new(c+m*.01,m*V),sp)if R~=nil and O then if R.Transparency>=.8 or R.Name=="\072\097\110\100\108\101"or string.sub(R.Name,1,6)=="\069\102\102\101\099\116"then local R=V-(O-c).magnitude return raycast(O,m,R)end end return R,O end function waitForChild(c,m)local V=c:findFirstChild(m)if V then return V end while true do V=c.ChildAdded:wait()if V.Name==m then return V end end end

nextjump=0
chasing=false

variance=4

damage=26
attackrange=5
sightrange=100
runspeed=26
wonderspeed=16
healthregen=true
colors={"Really black"}

function raycast(spos,vec,currentdist)
	local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(spos+(vec*.01),vec*currentdist),sp)
	if hit2~=nil and pos2 then
		if hit2.Transparency>=.8 or hit2.Name=="Handle" or string.sub(hit2.Name,1,6)=="Effect" then
			local currentdist=currentdist-(pos2-spos).magnitude
			return raycast(pos2,vec,currentdist)
		end
	end
	return hit2,pos2
end

function waitForChild(parent,childName)
	local child=parent:findFirstChild(childName)
	if child then return child end
	while true do
		child=parent.ChildAdded:wait()
		if child.Name==childName then return child end
	end
end
