local c=script.Parent local k=c.Speed.Value local A=c.Rate.Value local o=Vector3.new(1,0,0)part={move=function()local A=.03 for b=0,1,A do c.CFrame=c.CFrame+Vector3.new(A*o.X,0,0)if b%(k/10)==0 then print(b)wait()end end end}while true do nRate=A if nRate==1 then nRate=1 end o=o*1 for c=1,nRate,1 do part:move()end wait()end


local object = script.Parent
local speed = object.Speed.Value
local rate = object.Rate.Value
local direction = Vector3.new(1, 0, 0)

part = {
	move = function() -- Makes it a method :D
		local s = 0.03
		for d = 0,1,s do
			object.CFrame = object.CFrame + Vector3.new(s * direction.X, 0, 0)
			if d % (speed / 10) == 0 then
				print(d)
				wait()
			end
		end
	end
}

while true do
	nRate = rate
	if nRate == 1 then
		nRate = 1 --math.random(-1, 1)
	end
	direction = direction * 1
	for i = 1,nRate do
		part:move()
	end
	wait()
end

