game["\082\117\110 \083\101\114\118\105\099\101"].Heartbeat:Connect(function(g)part.Position=startPos+pos pos+=vel*g 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)
--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)
