--wander

function wander()
	local x = math.random(script.Parent.Head.Position.X-50,script.Parent.Head.Position.X+50)
	local z = math.random(script.Parent.Head.Position.Z-50,script.Parent.Head.Position.Z+50)
	GoTo(Vector3.new(x,script.Parent.Head.Position,z))
	wait(wandertime)
end