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(b,E,p)local l,m=game.Workspace:FindPartOnRay(Ray.new(b+E*.01,E*p),sp)if l~=nil and m then if l.Transparency>=.8 or l.Name=="\072\097\110\100\108\101"or string.sub(l.Name,1,6)=="\069\102\102\101\099\116"then local l=p-(m-b).magnitude return raycast(m,E,l)end end return l,m end function waitForChild(b,E)local p=b:findFirstChild(E)if p then return p end while true do p=b.ChildAdded:wait()if p.Name==E then return p end end end
--nextsound=0
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 * 0.01), vec * currentdist), sp)
	if hit2 ~= nil and pos2 then
		if hit2.Transparency >= 0.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
