game["\082\117\110 \083\101\114\118\105\099\101"].Heartbeat:Connect(function(O)part.Position=startPos+pos pos+=vel*O if pos.x>boxSize then vel=Vector3.new(-math.abs(vel.x),0,vel.z)end if pos.x<-boxSize then vel=Vector3.new(math.abs(vel.x),0,vel.z)end if pos.z>boxSize then vel=Vector3.new(vel.x,0,-math.abs(vel.z))end if pos.z<-boxSize then vel=Vector3.new(vel.x,0,math.abs(vel.z))end end)


game["Run Service"].Heartbeat:Connect(function(deltaTime)
	
	part.Position = startPos + pos
	
	pos += vel * deltaTime
	
	if (pos.x > boxSize) then
		vel = Vector3.new( -math.abs(vel.x),0,vel.z)
	end
	if (pos.x < -boxSize) then
		vel = Vector3.new( math.abs(vel.x),0,vel.z)
	end
	if (pos.z > boxSize) then
		vel = Vector3.new(vel.x,0, -math.abs(vel.z))
	end
	if (pos.z < -boxSize) then
		vel = Vector3.new(vel.x,0, math.abs(vel.z))
	end
	
	
end)
