--This is just some simple server script that moves the object around every frame
--The kinematics module handles the rest


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)
